import http from "@/utils/http";

export const getPageTradeCustomerApi = (data) => {
  return http({
    url: "trade/tradeCustomer/getPage",
    method:"GET",
    params:{
      pageNum: data.pageNum,
      pageSize: data.pageSize,
      customerName: data.customerName,
    }
  }
  )
};

export const refreshTradeCustomerApi = () => {
  return http({
    url: "trade/tradeCustomer/refresh",
    method:"POST"
  }
  )
};


export const getPageTradeSupplierApi = (data) => {
  return http({
    url: "trade/tradeSupplier/getPage",
    method:"GET",
    params:{
      pageNum: data.pageNum,
      pageSize: data.pageSize,
      supplierName: data.supplierName,
    }
  }
  )
};

export const refreshTradeSupplierApi = () => {
  return http({
    url: "trade/tradeSupplier/refresh",
    method:"POST"
  }
  )
};
